package demo;

public class Subscriber2 {
	@Subscribe
    public void method1(String message){
        System.out.println("this is subscriber2's method1");
    }
    @Subscribe(topic = "test")
    public void method2(String message){
        System.out.println("this is method2 for subscriber2, and my topic is not a default topic");
    }
}
